package com.neudu.yyzx_service.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.neudu.yyzx_service.pojo.Nurserecord;
import com.neudu.yyzx_service.service.NurserecordService;
import com.neudu.yyzx_service.mapper.NurserecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author asus
* @description 针对表【nurserecord】的数据库操作Service实现
* @createDate 2025-04-18 14:41:04
*/
@Service
public class NurserecordServiceImpl extends ServiceImpl<NurserecordMapper, Nurserecord> implements NurserecordService{

    @Autowired
    private NurserecordMapper nurserecordMapper;
    @Override
    public List<Nurserecord> selectAllrecords() {
        return nurserecordMapper.selectAllrecords();
    }

    public List<Nurserecord> selectrecordby(Nurserecord nurserecord) {
        return nurserecordMapper.selectrecordby(nurserecord);
    }

    public Nurserecord getById(Integer nurserecordid){
        return nurserecordMapper.getById(nurserecordid);
    }

    public Integer updateOne(Nurserecord nurserecord){
        return nurserecordMapper.updateOne(nurserecord);
    }

    public Integer addOne(Nurserecord nurserecord){
        return nurserecordMapper.addOne(nurserecord);
    }
    public List<Nurserecord> getRecordsByNursingName(String nursingName) {
        return nurserecordMapper.selectByNursingName(nursingName);
    }
}




